package com.wyw.design.model.learning.behavioral.strategy;

/**
 * @Title   上下文角色
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/19 16:37
 * Update History:
 * Author        Time            Content
 */
public class Context {
    private Strategy strategy = null;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    // 对外接口
    public void contextInterface() {
        this.strategy.algorithmInterface();
    }
}
